module.exports = ({ env })=>({
  defaultConnection: 'default',
  connections:{
    default:{
      connector:"bookshelf",
      settings:{
        client: "mysql",
        host: env("DATABASE_HOST","localhost"),
        port: env.int("DATABASE_PORT",3306),
        database: env("DATABASE_NAME","blog"),
        username: env("DATABASE_USERNAME","blog"),
        password: env("DATABASE_PASSWORD","blog")
      },
      options:{},
    }
  }
})

// module.exports = ({ env }) => ({
//   defaultConnection: 'default',
//   connections: {
//     default: {
//       connector: 'bookshelf',
//       settings: {
//         client: 'sqlite',
//         filename: env('DATABASE_FILENAME', '.tmp/data.db'),
//       },
//       options: {
//         useNullAsDefault: true,
//       },
//     },
//   },
// });
